<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>我的信息</title>
    <link rel="stylesheet" href="../../css/amazeui.min.css">
    <link rel="stylesheet" href="css/app.css">
    <style>
    	body{
    		
    	}
    	
    	 	.col{border-bottom: 1px solid #f1f1f1;margin-bottom: 5px;padding:10px;font-size:14px;}
    </style>
</head>
<body>


<div id='header' class="am-g am-topbar-fixed-top" >
	<div  onclick="api.closeWin();"  class="am-u-sm-2" style="margin-top:12px;padding-left: 17px">
		<img  src="images/arr-l.png" style="height:14px;height: 18px;"/>
	</div> 
	<div class="am-u-sm-8 til" style="margin-top:13px;text-align:center;font-size: 14px;">
		<h1>我的信息</h1>
	</div>
	<div class="am-u-sm-2" style="font-size: 20px;margin-top:10px;color:white;text-align:center;">

   </div>
</div>


<div class="am-g" style="margin-top: 50px;font-size: 14px;">
<div class="am-u-sm-12 col" >
账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：<span id="account"></span>
</div>
<div class="am-u-sm-12 col" >
姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：<span id="realName"></span>
</div>
<div class="am-u-sm-12 col" >
昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：<span id="nickName"></span>
</div>
<div class="am-u-sm-12 col" >
手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：<span id="mobile"></span>
</div>
<div class="am-u-sm-12 col" >
城&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;市：<span id="city"></span>
</div>
<div class="am-u-sm-12 col" >
小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区：<span id="compounds"></span>
</div>
<div class="am-u-sm-12 col" >
单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元：<span id="unitName"></span>
</div>
<div class="am-u-sm-12 col" >
房&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：<span id="roomNumber"></span>
</div>
<div class="am-u-sm-12 col" >
业&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主：<span id="ownerName"></span>
</div>   

<div class="am-u-sm-12"  onclick="openWin('useredit');" style="margin-top:15px;font-size: 14px;">
	   <div class="am-u-sm-12 bottonradius">
		            修改信息
	    </div>
</div>



</div>












	
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">

    
	apiready = function(){
		
		api.addEventListener({
		    name: 'refreshUserinfo'
		}, function(ret){
		    if(ret){
		      loadData();
		    }
		});
		
		 loadData();
	};
	
	
	function loadData(){
	     var commuser=$api.getStorage('member2');
	   //  alert(JSON.stringify(commuser));
	
	     $api.text($api.byId('account'), commuser.account);
	     $api.text($api.byId('realName'), commuser.realName);
	     $api.text($api.byId('nickName'), commuser.nickName);
	     $api.text($api.byId('mobile'), commuser.mobile);
	     $api.text($api.byId('compounds'), commuser.compounds);
	     $api.text($api.byId('unitName'), commuser.unitName);
	     $api.text($api.byId('roomNumber'), commuser.roomNumber);
	     $api.text($api.byId('ownerName'), commuser.ownerName);
	     $api.text($api.byId('city'), commuser.address);
	};
	

	
	
</script>
</html>